﻿using GraphProcessor;
using IQIGame.Onigao.Logic;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.Trigger + "/" + SkillEditorConst.SelfAddBuff, typeof(SkillEditorGraph))]
    public class SkillTriggerNode_SelfAddBuff : SkillTriggerNode
    {
        protected override ESkillTriggerType type => ESkillTriggerType.SelfAddBuff;

        [InspectorName("Buff ID")] public int buffID;
        [InspectorName("Tag")] public int desType;
        
        protected override SkillCustomConfig CreateConfig()
        {
            return new SkillTrigger_SelfAddBuff_ConfigData()
            {
                buffID = this.buffID,
                tag = this.desType,
            };
        }
    }
}